<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>当天财务统计</a></li>
		</ul>
		<form class="well form-search" method="post" action="{:U('Examine/other_finance')}" style='line-height: 46px;'>
			姓名： 
			<input type="text" name="name" style="width: 200px;" value="{:I('request.name')}" placeholder="姓名">
			财务专员：
			<input type="text" name="caiwu" style="width: 200px;" value="{:I('request.caiwu')}" placeholder="财务专员" />
			<br/>
			统计时间：<input class="js-date" type="text" name="ends" style="width: 200px;" value="{:I('request.ends',date('Y-m-d'))}" >
			类型：<select name="types">
				<php>$tpl_selected=I('request.types')==''?"selected":"";</php>
				<php>$tpl_selected=I('request.types')=='0'?"selected":"";</php>
				<option {$tpl_selected} value="0">系统</option>
				<php>$tpl_selected=I('request.types')=='1'?"selected":"";</php>
				<option {$tpl_selected} value="1">其他</option>
				</select>
			统计类型：<select name="type">
					<php>$tpl_selected=I('request.type')==''?"selected":"";</php>
					<php>$tpl_selected=I('request.type')=='0'?"selected":"";</php>
					<option {$tpl_selected} value="0">还款</option>
					<php>$tpl_selected=I('request.type')=='1'?"selected":"";</php>
					<option {$tpl_selected} value="1">逾期</option>
					<php>$tpl_selected=I('request.type')=='2'?"selected":"";</php>
					<option {$tpl_selected} value="2">续期</option>
					</select>
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="">清空</a>
		</form>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th  align="center">操作时间</th>
						<th  align="center">借款编号</th>
						<th>用户名</th>
						<th>借款金额</th>
						<th>类型</th>
						<th>信息</th>
						<th>操作人</th>
						<th align="center">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
				<php>$othamount=0;$nums=0;$stu_ty=array('0'=>'用户审核','1'=>'订单审核','2'=>'用户信息审核','3'=>'续期审核','4'=>'逾期还款(本金)','5'=>'逾期还款','6'=>'订单审核','7'=>'客户还款');</php>
					<foreach name="list" item="vo">
					<tr>
						<td align="center">{$vo.crtime}</td>
						<td align="center">{$vo.order_id}</td>
						<td>{$vo.name}</td>
						<td>{$vo.amount}</td>
						<td>{$stu_ty[$vo['types']]}</td>
						<td>{$vo.message}</td>
						<td>{$users[$vo['examine_id']]|default='系统'}</td>
						<td align="center">
							<a href="{:U('Examine/due_info',array('id'=>$vo['id'],'display'=>2))}" >查看详情</a>
						</td>
					</tr>
					<php>$othamount+=$vo['amount'];$nums+=1;</php>
					</foreach>
				</tbody>
				<tr>
					<td align="center">总共</td>
					<td align="center">{$nums}条</td>
					<td></td>
					<td>{$othamount}</td>
					<td></td>
					<td></td>
					<td></td>
					<td align="center"></td>
				</tr>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>